import $store from '@/sheep/store';
import platform from '@/sheep/platform';
// id = 权限名
// successCallBack = 成功回调函数
// failCallBack = 失败回调函数
// show = 是否显示常驻弹窗
export function showAuditModal(id, successCallBack, failCallBack, show = false) {
	const permission = $store('permission')
	permission.$patch((state) => {
		state.permissionID = id;
		state.success = successCallBack;
		state.fail = failCallBack;
	});
	permission.requestPermissions()
}